UPDATE C1_USER_DEPARTMENT SET END_DATE = SYSDATE, DATA_STATE_CODE = '0' WHERE
INSTR(','||:userDepartmentIds||',', ','||USER_DEPARTMENT_ID||',') > 0